package cn.wolfcode.mapper;

import cn.wolfcode.domain.ActivityItem;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ActivityItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ActivityItem record);

    ActivityItem selectByPrimaryKey(Long id);

    List<ActivityItem> selectAll();

    int updateByPrimaryKey(ActivityItem record);

    List<ActivityItem> selectForList(QueryObject qo);

    List<ActivityItem> selectByaId(Long aId);

    void updateNum(@Param("id") Long id, @Param("num") Integer num);

    List<Long> selectInChoice(Long id);

    void insertRelation(@Param("eId") Long eId, @Param("aiiId") Long aiiId, @Param("date") Date date);
}